import request from '@/utils/request'
import { getToken } from '@/utils/auth'
export function getWorksAndClass(courseId){
    return request({
        url:"/api/work/list?courseId=" + courseId,
        method:"get",
        headers:{
            'Satoken': getToken()
        }
    })
}

// 提交作业
export function submitWork(submitWork){
    return request({
        url:"/api/work/submit",
        method:"post",
        data:submitWork,
        headers:{
            'Satoken': getToken()
        },
    })
}

// 查询作业和作业提交信息
export function workInfo(workId){
    return request({
        url:"/api/work/info?workId=" + workId,
        method:"get",
        headers:{
            'Satoken': getToken()
        },
    })
}